package com.registration.bean;


import java.util.Date;

public class PaymentBean {
    //支付记录
    private Integer record_id;//记录 ID（自增）
    private Integer   order_id;//订单 ID（外键关联 registration_order 表，唯一）
    private Integer  user_id;//用户 ID（外键关联 user 表）
    private Integer   patient_id;//就诊人 ID（外键关联 patient 表）
    private String   pay_no;//支付单号（系统生成，唯一）
    private String   trade_no;//第三方交易号（微信 / 支付宝返回）
    private Double   amount;//支付金额（与订单金额一致）
    private Integer    pay_type;//支付方式（1 - 微信，2 - 支付宝）
    private Integer    status;//支付状态（0 - 处理中，1 - 成功，2 - 失败）
    private Date pay_time;//支付完成时间
    private String    remark;//备注（如：支付失败原因）
    private Date  create_time;//记录创建时间
    private Date  update_time;//记录更新时间（状态变动时更新）

    private String name;  // 病人姓名
    private String username;  //登录用户名字
    private Integer doctor_id;
    private Integer schedule_id;

    private  String visit_no;
    public String getVisit_no() {
        return visit_no;
    }

    private String symptoms;

    public String getSymptoms() {
        return symptoms;
    }

    public void setSymptoms(String symptoms) {
        this.symptoms = symptoms;
    }

    private Integer time_slot; // 预约时间段（添加功能）

    private Date visit_date; //预约日期（添加功能）

    public Integer getTime_slot() {
        return time_slot;
    }

    public void setTime_slot(Integer time_slot) {
        this.time_slot = time_slot;
    }

    public Date getVisit_date() {
        return visit_date;
    }

    public void setVisit_date(Date visit_date) {
        this.visit_date = visit_date;
    }

    public Integer getDoctor_id() {
        return doctor_id;
    }

    public void setDoctor_id(Integer doctor_id) {
        this.doctor_id = doctor_id;
    }

    public Integer getSchedule_id() {
        return schedule_id;
    }

    public void setSchedule_id(Integer schedule_id) {
        this.schedule_id = schedule_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "PaymentBean{" +
                "record_id=" + record_id +
                ", order_id=" + order_id +
                ", user_id=" + user_id +
                ", patient_id=" + patient_id +
                ", pay_no='" + pay_no + '\'' +
                ", trade_no='" + trade_no + '\'' +
                ", amount=" + amount +
                ", pay_type=" + pay_type +
                ", status=" + status +
                ", pay_time=" + pay_time +
                ", remark='" + remark + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }

    public Integer getRecord_id() {
        return record_id;
    }

    public void setRecord_id(Integer record_id) {
        this.record_id = record_id;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getPatient_id() {
        return patient_id;
    }

    public void setPatient_id(Integer patient_id) {
        this.patient_id = patient_id;
    }

    public String getPay_no() {
        return pay_no;
    }

    public void setPay_no(String pay_no) {
        this.pay_no = pay_no;
    }

    public String getTrade_no() {
        return trade_no;
    }

    public void setTrade_no(String trade_no) {
        this.trade_no = trade_no;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getPay_type() {
        return pay_type;
    }

    public void setPay_type(Integer pay_type) {
        this.pay_type = pay_type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPay_time() {
        return pay_time;
    }

    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
